/* topbar */
main {
    background: #eee;
}

.isFixed {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    z-index: 100; 
    border-bottom: 1px solid #ececec;
}

.custom-nodata {
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    text-align: center;
    width: 80%;

    .icon-cart {
        display: inline-block;
        width: 106px;
        height: 106px;
        background-size: contain;
        background-repeat: no-repeat;
        background-image: url();
    }

    p {
        font-size: 12px;
        color: #7f7f7f;
        margin-bottom: 5px;  
    }

    .custom-btn-box {
        padding: 10px 50px;
    }
}


/* content */
.custom-panel {
    height: 36px;

    .custom-panel-hd {
        background-color: #fff;
        font-size: 14px;
        height: 36px;
        line-height: 36px;
        text-align: center;
        border-bottom: 1px solid #ececec;
        padding: 0 10px;
        
        .custom-panel-btn {
            position: absolute;
            right: 10px;
            top: 0;
        }

        h1 {
            font-size: 14px;
            font-weight: 500;
        }
    }

    .custom-panel-bd {
        padding-bottom: 40px;
    }

    .custom-panel-ft {
        height: 40px;
        line-height: 40px;
        background-color: #fff;
        font-size: 12px;
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        width: 100%;
        height: 44px;
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
        -webkit-box-pack: center;
        -ms-flex-pack: center;
        justify-content: center;
        background-color: #fafafa;
        border-top: 1px solid #ececec;
        position: fixed;
        bottom: 50px;
        left: 0;
        right: 0;

        .custom-info {
            flex-grow: 1;
            padding: 0 10px;
            font-size: 0;

            span {
                font-size: 12px;
            }

            .custom-price {
                color: #b4282d;
                float: right;
            }
        }

        .btn {
            width: 96px;
            display: inline-block;
            background-color: #b4282d;
            border: 1px solid #b4282d;
            font-size: 12px;
            color: #fff;
            vertical-align: middle;
            text-align: center;
            -webkit-box-sizing: border-box;
            box-sizing: border-box;

            &.disabled {
                background-color: #ccc;
                border-color: #ccc;
                pointer-events: none;
            }
        }
    }
}

.custom-checkbox {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 1px solid #d9d9d9;
    background-color: #fff;
    border-radius: 50%;
    text-align: center;
    line-height: 14px;
    margin-right: 10px;

    .iconfont {
        font-size: 12px;
        color: #fff;
    }

    &[checked] {
        background-color: #b4282d;
        border-color: #b4282d;
    }
}

.custom-service-policy {
    background-color: transparent;
    color: #666;
    font-size: 12px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-pack: distribute;
    justify-content: space-around;
    padding: 8px 10px;

    .iconfont {
        color: #666;
    }
}

.custom-notice {
    display: flex;
    align-items: center;
    font-size: 13px;
    color: #f48f18;
    background-color: #fff8d8;
    padding: 0 10px;
    height: 34px;

    span {
        flex-grow: 1;
    }
}

.custom-flex-list {
    background-color: #fff;
    padding-left: 10px; 
}

.custom-goods-list {
    >li {
        padding: 0;
        border: none;
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        width: 100%;
        padding: 10px 10px 10px 0;
        font-size: 12px;
        line-height: 1.6;
        -webkit-box-sizing: border-box;
        box-sizing: border-box;
        list-style: none;

        &:not(:first-child){
            border-top: 1px solid #d9d9d9;

            .custom-info {
                border-top: 1px solid #ececec;
            }
        }
    
        .custom-key {
            padding: 10px 0;
            align-self: center;
            -ms-flex-negative: 0;
            flex-shrink: 0;
        }

        .custom-info {
            padding: 10px 10px 10px 0;
            -webkit-box-flex: 1;
            -ms-flex-positive: 1;
            flex-grow: 1;

            &.nowrap {
                white-space: nowrap;
                overflow: hidden;
                text-overflow: ellipsis;
            }

            img {
                width: 68px;
                height: 68px;
                background-color: #f4f4f4;
                margin-right: 10px;
                float: left;
            }

            .custom-txt {
                line-height: 1;

                .custom-des {
                    color: #666666;
                    margin-top: 5px;
                }

                .custom-txtbtm {
                    margin-top: 20px;
                    line-height: 20px;
                }
            }
        }
    }
}

.custom-count {
    height: 20px;
    line-height: 20px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    text-align: center;

    input {
        line-height: 20px;
        width: 60px;
        border: 1px solid #d9d9d9;
        text-align: center;
    }

    span {
        width: 30px;
        font-size: 20px;
        border: 1px solid #d9d9d9;
        color: #999;

        &:first-child {
            border-right: none;
            border-radius: 2px 0 0 2px;
        }

        &:last-child {
            border-left: none;
            border-radius: 0 2px 2px 0;
        }

        .disabled {
            pointer-events: none;
            border: 1px solid #e5e5e5;
            color: #e5e5e5;
        }
    }

    &.fr {
        float: right;
    }
}